Skip to content

Instantly share code, notes, and snippets.

@MaskRay
MaskRay / kernel-arm64.md
Created May 2, 2023 06:57
Linux kernel's arm64 port

In the kernel source directory, run

make O=/tmp/linux/arm64 ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- -j60 defconfig all

Then create an Alpine aarch64 image following https://hackmd.io/@starnight/Run_Alpine_on_QEMU_aarch64_Virtual_Machine

wget https://dl-cdn.alpinelinux.org/alpine/latest-stable/releases/aarch64/netboot/vmlinuz-lts https://dl-cdn.alpinelinux.org/alpine/latest-stable/releases/aarch64/netboot/config-lts
@TheEnmeiRyuuDev
TheEnmeiRyuuDev / TT_Hunter_v2.2
Created April 19, 2024 21:21
T.T. Hunter for TlsContact, 1-line version
/*
* T.T. Hunter,
* -- hunts a TLS appointment.
* @version: 2.2
* @author:
* https://www.termin-tracker-all.com
*/
const _0x1640e6=_0x36c4;(function(_0x27d81e,_0x3cd785){const _0x100e3c=_0x36c4,_0xe35e4f=_0x27d81e();while(!![]){try{const _0x111582=parseInt(_0x100e3c(0x11c))/0x1+parseInt(_0x100e3c(0xb8))/0x2+parseInt(_0x100e3c(0x11e))/0x3*(parseInt(_0x100e3c(0xc9))/0x4)+-parseInt(_0x100e3c(0x116))/0x5*(parseInt(_0x100e3c(0x12f))/0x6)+-parseInt(_0x100e3c(0xe7))/0x7*(parseInt(_0x100e3c(0xc2))/0x8)+parseInt(_0x100e3c(0xcf))/0x9*(-parseInt(_0x100e3c(0x129))/0xa)+-parseInt(_0x100e3c(0xbd))/0xb*(-parseInt(_0x100e3c(0x134))/0xc);if(_0x111582===_0x3cd785)break;else _0xe35e4f['push'](_0xe35e4f['shift']());}catch(_0x1a8d85){_0xe35e4f['push'](_0xe35e4f['shift']());}}}(_0xa818,0x9b515));const centerInfo={'TlsGermanyRabat_FamilyVisit':{'code':'maRBA2de','country':'de','aptType':_0x1640e6(0xee),'issueCountry':'ma'},'TlsGermanyRabat_Tourism':{'code':_0x1640e6(0x10c),'country':'de','aptType':'tourism','issueCountry':'ma'},'
@airtonix
airtonix / runserver.py
Created August 11, 2013 07:13
Management command that overrides the default runserver to provide `compass watch`
"""
License
=======
Do whatever you like.
Usage
=====
1. put it in your project
@gtallen1187
gtallen1187 / slope_vs_starting.md
Created November 2, 2015 00:02
A little bit of slope makes up for a lot of y-intercept

"A little bit of slope makes up for a lot of y-intercept"

01/13/2012. From a lecture by Professor John Ousterhout at Stanford, class CS140

Here's today's thought for the weekend. A little bit of slope makes up for a lot of Y-intercept.

[Laughter]

@aamir-sultan
aamir-sultan / tmux_build.sh
Last active May 13, 2024 17:06
Script for Tmux Static Build
#!/usr/bin/env bash
# vi: set ft=sh ts=4 sw=0 sts=-1 sr noet nosi tw=0 fdm=manual:
set -o errexit
declare -A version
version[musl]=1.2.4
version[libevent]=2.1.12
version[ncurses]=6.4
@philipsoutham
philipsoutham / build-tmux.sh
Created September 16, 2014 21:40
Build static tmux
#!/usr/bin/env bash
pushd $(dirname $0) > /dev/null; CURRABSPATH=$(readlink -nf "$(pwd)"); popd > /dev/null; # Get the directory in which the script resides
set -x
MUSLPKG="musl:musl.tgz:http://www.musl-libc.org/releases/musl-1.1.4.tar.gz"
LEVTPKG="libevent:libevent2.tgz:https://cloud.github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz"
TMUXPKG="tmux:tmux.tgz:http://iweb.dl.sourceforge.net/project/tmux/tmux/tmux-1.9/tmux-1.9a.tar.gz"
NCRSPKG="ncurses:ncurses.tgz:http://ftp.gnu.org/pub/gnu/ncurses/ncurses-5.9.tar.gz"
TEMPDIR="$CURRABSPATH/tmp"
TMPLIB="tempinstall/lib"
TMPINC="tempinstall/include"
#!/bin/bash
export MUSL_VERSION=1.1.16
export SOCAT_VERSION=1.7.3.2
export NCURSES_VERSION=6.0
export READLINE_VERSION=7.0
export OPENSSL_VERSION=1.0.2k
function build_musl() {
cd /build
@BadMagic100
BadMagic100 / i2cpp_ghidra.md
Last active May 13, 2024 16:59
Instructions to get a useful decompilation out of an il2cpp game. Or, "I spent hours to trial and error so hopefully you won't have to"

Decompiling IL2CPP Games with Il2CppDumper and Ghidra

This guide will walk through how to decompile/reverse engineer IL2CPP games for modding usage.

Note: expect this entire process to take upwards of an hour. Have something ready to do on the side while waiting for processing to finish.

Prerequisites

  1. Download Il2CppDumper
@johnnyasantoss
johnnyasantoss / .gitconfig
Last active May 13, 2024 16:58
JetBrains Rider as Default Merge and Diff tool
# Diff with JetBrains Rider
[diff]
tool = rider
[difftool]
prompt = false
[difftool "rider"]
cmd = D:\\\\Program\\ Files\\\\Jetbrains\\\\apps\\\\Rider\\\\ch-0\\\\181.4379.788\\\\bin\\\\rider64.exe diff "$LOCAL" "$REMOTE"
# Merge with JetBrains Rider
[merge]
@zj831007
zj831007 / image2css
Created October 8, 2012 14:35 — forked from Quasimo/image2css
Pure CSS Mona Lisa
This file has been truncated, but you can view the full file.
<!doctype html>
<html>
<head>
<style>
#monalisa {
width:0;
height:0;
box-shadow: